package home.ex.todolist.client.gin;

import home.ex.todolist.client.core.MainTodoPresenter;
import home.ex.todolist.client.core.MainTodoView;
import home.ex.todolist.client.place.ClientPlaceManager;
import home.ex.todolist.client.place.DefaultPlace;
import home.ex.todolist.client.place.NameTokens;

import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
import com.gwtplatform.mvp.client.gin.DefaultModule;

public class ClientModule extends AbstractPresenterModule {
    
    @Override
    protected void configure() {
	this.install(new DefaultModule(ClientPlaceManager.class));
	
	this.bindPresenter(MainTodoPresenter.class, MainTodoPresenter.MyView.class, MainTodoView.class,
		MainTodoPresenter.MyProxy.class);
	
	this.bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.main);
    }
}
